package com.zhj.common.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zhj.common.enums.Deleted;
import java.util.Date;

import lombok.Data;

/**
 * 公共抽象实体类
 * 创建人: zhonghaijun
 * 创建时间: 2023-07-31 10:41:28
 */
@Data
public abstract class AbstractPO {
    /** id */
    public static final String ID = "id";
    /** 创建时间 */
    public static final String CREATE_TIME = "create_time";
    /** 更新时间 */
    public static final String UPDATE_TIME = "update_time";
    /** 删除 */
    public static final String DELETED = "deleted";
    /** Id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** Create time */
    private Date createTime;

    /** Update time */
    private Date updateTime;

    /** Deleted */
    private Deleted deleted;
}
